package com.haulmont.asu.web;

import com.haulmont.cuba.web.AppUI;
import com.haulmont.cuba.web.AppWindow;
import com.haulmont.cuba.web.DefaultApp;
import com.haulmont.cuba.web.toolkit.ui.CubaTimer;

public class UniversityApp extends DefaultApp {

    @Override
    protected AppWindow createAppWindow(AppUI ui) {

        AppWindow window = new UniversityAppWindow(ui);

        CubaTimer timer = createSessionPingTimer();
        if (timer != null) {
            window.addTimer(timer);
            timer.start();
        }

        return window;
    }
}